Fixed buggy prompt.  Should really have tested deeper inside a repository first