BUG: Fixes to run AutoWorkup on SGE cluster