Break out install check for re-use from rspec tests.
Merge.