Pear exits with info if called in a dir without .git
Moved git_dir assignment to where PEAR_WORKING_DIR used to be exported