os.path.isdir('.git') IS NEVER CORRECT