Notice that we already use semver style, we have an implementation in [xul-app](https://github.com/mozilla/addon-sdk/blob/master/lib/sdk/system/xul-app.js). See [test-xul-app](https://github.com/mozilla/addon-sdk/blob/master/test/test-xul-app.js) for some example of usage.