fixing autoconfig handling
Merge pull request #7099 from owncloud/fix-autoconfig-master

fixing autoconfig handling