updated sh to return only stdout by default
added version check to gem install