fix commands over-writing files