Refactor and fix prep scripts for the tool shed's install and test frameowrk.