fix file mode changed from ftp xfer