fixed build_version tool to check BUILD_EXT env var