Replace rm by unlink; fixes #1
Merge pull request #2 from sgibb/cleanupTmpFiles

Replace rm by unlink; fixes #1