Add check for file to exist before trying to make a copy of it to avoid a warning.