.env.sh in craft-scrips
The other error Im getting is dirname: command not found.
I was able to solve this issue by just manually setting the DIR variable in the script I needed to use. There is probably a better way....