Added the ability for the .git dir to be in a parent directory