infra: fix BUILDTAG for out-of-tree builds