Test support for Mac OS X(Yosemite)
refactor sudo option