Resolve file path before checking if the file exists.

Fix relative paths for less and man.