M36 Gardening : Do not use landmines to check the OS

Follow what upstream is doing in gyp_chromium so that
OS detection works.