Fix non-file candidates containing path characters

This fixes an issue which manifests when completing non-file prefixes which contain slashes (e.g. "origin/master"). 

The present code will complete "origin/ma" as "origin/origin/master" (the candidate retains the full path); this selectively unpaths candidates if the full prefix (back to most recent whitespace) contains a slash.