Ensure that bash is used.
Where the location of bash can differ from one system to another system:
/bin/bash /usr/bin/bash /usr/local/bin/bash /opt/bin/bash etc

All systems (that I know of) have the env command in the same location
/usr/bin/env