Fix bug with dynamic tag loading for build types