Use cwd for commands instead of git_dir