[PATCH (pushed)] build: Fix logic bug determining whether running with optimization