get build type from attribute rather then from content of the tag