To build against a specific (not auto detected) SDK version set USER_OS_SDK and/or USER_SIM_SDK at the top of the script.