Changed git_dir to argument for portability