Resolve file path before checking if the file exists.
Merge pull request #1 from lincolnthree/master

Resolve file path before checking if the file exists.