Patch setlocal fix and add the xml filetype to supported filetypes