Fixed issue when passing exactly one build flag.