Added a check to make install more cygwin friendly.