solved some issues with the env.sh script

It kept crashing for me.
I expect it to crash for anyone who overloads the 'cd' command to have some output
(I overload cd to something like 'cd ; ls -l'.)
added gitignores

any 'git add .' could have added files you didn't want in the repo.
any generated files would have been added too.