Fixed line-based Ruby version detection in response to issue 3