Updater low memory limit

Ref https://github.com/owncloud/core/issues/6910
https://github.com/owncloud/core/issues/6942

based on https://github.com/owncloud/apps/pull/1627

tested with 40Mb PHP memory limit