update version info, append git hash if available
replace edict by emat