safer version lookup

see https://github.com/wayneeseguin/rvm/pull/2530#issuecomment-31909954