Add smarts to detect '--version', so that we can cope with other Ruby versions