add a warning when PATH does not start with GEM_HOME, fix #2044