Update file resolve method

Use path.join instead of manual string concat.
Merge pull request #1 from CKing/master

Update file resolve method