addedf helper function to escape glob pattern
Merge branch 'encryption_system_wide_mounts' of github.com:owncloud/core into encryption_system_wide_mounts