Bug 1078380 - Make querying which operating system we run a script on more robust. r=armenzg