Modefix

Every file uploaded was getting set to 0755 when it was uploaded. Also made the mode of the remote directories match the locals.