Fix toolchain if statement