Nicer failure message when trying to install an invalid version. Fixes #285.