toolchain: fix usage of nonexistent variable sys.os