Update rebuild.sh for GHC 7.8 build process