fix chmod error for remote files using sudo