Fixed issue with gemWorkDir not specified