Fixed|libdeng2: Calculating build numbers

Adjusted the build number formula to work exactly like the one used
by the autobuilder. libdeng2 had started to drift apart...