Try to overwrite the file