Created by: xiaonaitong
I want to use this tools in mingw,but there is some problems
- mingw use bash 3.1 ,which don't support process substitution and "=~" operator
- python on windows don't have os.getuid() function
- windows don't have sudo command I think it will also work on cygwin, but have not tested.