it works!

bash needs BASH_ENV variable to load the functions for bash scripts (non-interactive mode)