Fixes and updates, testing environment is finally setup
Abstracting out to individual functions so we can take care of ghc-pkg stuff too