Adding doctest for extractGhcVer.
Supporting sandbox for test_script.sh.
adding tests for Sandbox.
refactoring Sandbox.