fix bug with path_helper and {py,rb}env and login shells

remove the shims directories from the path before running {rb,py}env init so that they correctly get prepended to the path, and not left at the end