Don't change the current working directory if already in git repository