Add support for script addon and keep compat with addons.sh