Move the move function to fileutil.