Make sure file exists before trying to delete it