Allow installation of prerelease packages without requiring a valid version to be specified.

InstallCommand should not ignore the allowPreRelease flag if a version is not explicitly specified by the user.

Fixes #252.