only keep diff file when the debug flag is passed

fixes #15