cygwin compatible fix
Merge pull request #112 from ideawu/master

cygwin compatible fix