Fixes #7: Going to .git folder crashes prompt.