Fix incorrect method of making files relative.

This broke the multiple subdirectory functionality, since the subdir
paths would always be incorrect.
Merge pull request #114 from ahyatt/absolute-paths

Fix incorrect method of making files relative.