Rebase assign-workgroups-by-locality.patch on r1454
Allow the user to handle i/o with redirection instead of hardcoding filenames
Enable execute bits and assume m2s is installed correctly