If vala is recent enough, the "sed" operation is not needed.
Also, run the sed trick only once on the file.
Vala version is checked via new m4 function.
Removed the .gir from the CLEANFILES. It must be cleaned only when
the library it comes from is cleaned.