Fixed _shared_globals.selectedToolchains not being correct when no toolchains are specified.