use - or _ when detecting version

The URLs for rpm packages use <code>chef-</code> instead of <code>chef_</code>, which makes detecting the version fail on rpm-based machines.