Updated on_success_replace to not close, ie. delete

According to the documentation on tempfile (ruby 1.9.1)
close 'unlinks' (deletes) the file and that might not be proper
if we still want to rename it etc.