Prevent deletion of files when invalid output-path is provided