Provide has_path() to replace has_file()

It also returns true for directories.
Fix . argument to navigation commands
Restore related() for backwards compatibility