Make fluxmake to intelligently generate version information

Signed-off-by: Frank Mertens <frank@cyblogic.de>