[Restructure] Better sed support for Windows

Looks for Cygwin in addition to GnuWin32.  If neither are found it falls
back to looking for the executable using the `where` command.