Use platform variable instead of SP_OS in the branch where the latter may not be set