This sets up the sge workers properly, not pretty, but seems functional.