devtools: fix config check when building tags