Fix owncloud default directory check