Rewrite SmartOS detection. Unset gnu_tools_path in the end