Set file mode after moving