Fix gridengine class to be parametrized

Remove reliance on a global variable for configuration (but
keep the global as default for transition purposes)

Change-Id: I844113e7c073a30b3afd200d2970a0cb311e44ff
Merge "Fix gridengine class to be parametrized" into production