Use `phantom.openPage` to report errors' filenames.
Simplify `parsePaths` function.
Possible fix for `file://` paths.