Resolve file path before checking if the file exists.