Make quick migrate safer when dealing with files and permissions