Correct GEM_PATH and GEM_HOME setup

Created this patch about 2 months ago. Ran into the same issue, so checked on the status and couldn't find the issue. I am guessing I created the patch but didn't actually create the issue for some reason so you guys never saw this.

This resolves some issues with running tasks locally.