bug fix: fix "--sysroot" option and host platform detection.