Fix for Should work with open_basedir enabled

Fix for https://github.com/owncloud/core/issues/1916