Add Cygwin detection to bootstrap and add insecure directories warning fix