Fixed 'not a git repository' errors with the prompt