Make sure version is specified on install.

Added a condition to make sure the user specified a version when installing.