In prompt_pwd use indexes rather than strings

otherwise if two directories in the heirarchy have the same name, they
will both not be shortened when one should be.
When shortening dir names, keep two letters when 1st is .
Merge branch 'foobacca-zshprompt'