fix shortenPath when working on invalid directories
fix shortenPath when working on invalid directories

darcs-hash:20080215040425-1a7c6-9c23948119f461645bbae38dc392812e1028bdec

kirbyfan64/jhc,kirbyfan64/jhc,kirbyfan64/jhc,kirbyfan64/jhc