Add the notion of version in both build systems. Remove redundant code.
Propagate the version to the executable code.
Simplify.
Update the test to more generically 'detect' the version.
Remove old code and dir.