This test creates a shebang (#!) line that may exceed 80 characters, which is
a limit on many systems. Instead, use /usr/bin/env to invoke the right 'swift'.
OS X is more permissive (up to PATH_MAX characters), so continue testing the
direct invocation there.