[cvs-nhc98] patch applied (nhc98): fix corner-case when .cabal file has a blank line at the end