Properly display path.  fix #439
Using better condensed code for dirname
Merge pull request #440 from codingtwinky/fix_439

Properly display path.  fix #439