Set current-directory etc. to match source file. Closes #28.