added .gitignore and fixed g4env.sh