Fix filename prefix chop when not in project

The value returned by `read-directory-name` is begin with `~`, and the filename returned by `projectile-dir-files-external` is begin with `/home`, the filename prefix won't get properly choped.