Correctly write sources and list files
Merge pull request #69 from TimSimpsonR/fix-source-dir

Correctly write sources and list files