check if file exists before taking a backup