Fix mistaken environment variable names
Fix cd into project dir to create git repo
Make backup of existing hooks