factor out mac compatability stuff
bit of clean-up for JobTask