Use /usr/bin/env instead of /bin/env

/bin/env is not available on some systems (e.g. Ubuntu)