adding option to use \W for path instead of \w

The current shorten path doesn't offer a nice way to simply have just the current directoy. This just uses the native \W to achieve that.