Stop execution in case the script is used for an upgrade

Also includes new dependencies

Fixes https://github.com/owncloud/administration/issues/9