Merge.hs: move existing metadata reading out before ebuild generation

That way it's easier to adjust process of ebuild generation based on
existing metadata (like cabal flag picking).

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>