chmod files before sending them