finall fixing of detection and parsing of ruby strings for installed rubies, update #2503
starting with ruby 2.1.0 the head branch is 2.1, fix #2512
restore sourcing functions/rubygems in manage