Toolchain and if statement for buildscript