It turns out that the carefully crafted patching of source/VERSION doesn't do anything because no one runs scripts/mkversion.sh afterwards. Try smbclient --version to see for yourself. This needs further thought.