make init.d work

added a GEM_HOME variable to set it up during the start process