modified rubyenv script to work with bash