Fix preserve timestamp issues for sftp connections.