better update solution for ownCloud and some small changes/fixes