read the gemset part before removing it from ruby_string