Update the jenkins script to obey env vars for different ghc build modes