Refactor Firefox Add-ons build script