Bug 1037235 - toolkit/loader doesn't check module compatibility

I don't quite understand why we need a valid `nsIXulAppInfo` in OS.File's `head.js` for the sake of `Webapps.jsm`.