Check that GEM_HOME include '/' and doesn't ends with it to prevent exception in split