supporting BUILD_CAT and BUILD_NAME environment variables