Set system $PATH correctly and add the GEM environmental variables