only keep diff file when the debug flag is passed

fixes #15
Merge pull request #20 from aaronjorbin/debugPatch

only keep diff file when the debug flag is passed