fixing owncloud/code#6765

when ownCloud is extracted as user root, world writable files and
folder need to be fixed
Merge pull request #298 from owncloud/blackm

fixing owncloud/core#6765: avoid world writable folder