Fixes and code cleanup for the tool shed's install and test framework.