Fixed reckless clobbering if file existed