Changed how Version.hs is generated to include top level definition