Use expanded directory names for repo folders

This change traverses the actual path to build the prompt, and leaves 
the names of directories that are Git or Mercurial repositories at their 
full length.