This patch replaces the former direct use of a file-system session by the use of the VFS API. Issue #4390