[cvs-nhc98] patch applied (hat): improve ghc-version detection at install time