Fix a bug that caused original files to be deleted instead of the target file when overwriting.
Fix a bug that caused original files to be deleted instead of the target file when overwriting.

Closes #11
pgangwani/ncp,Medium/ncp,AvianFlu/ncp,jfremy/ncp,stefanpenner/ncp