Ensure /usr/local/bin:/usr/bin:/bin is in the path so that /usr/bin/env can be used