Improving php_version segment: better way to get version number
Adding ruby_version segment