fix for https://github.com/owncloud/mirall/issues/2491