Add delete_unless plus misc tweaks to File#safe_replace