WIP: Set permissions on generated scripts (otherwise Torque can't read them, apparently)