This also makes all build scripts runnable on Windows using both Cygwin and native python. Change-Id: If324800b8b899cac1cc715d30383255cd5f6ee71