Pass filepath when compiling single file

Closes gh-64.