owncloudcmd:  restart the sync if required

Fixes #2038