Added support for "Update Add-ons automatically"
Fixed if statement