Fix the available? function

Now works as long as the version number is still /\d+\.\d+/.