owncloud: Fix some problems in the owncloud module.
owncloud: Fix some problems in the owncloud module.

Thanks to Patrick Buergi.

meeh420/csync,gco/csync,gco/csync,meeh420/csync,gco/csync,meeh420/csync,gco/csync