check if file exists on rename