This code tokenizes the file name based on commas and extracts
relevant parts sequentially.
`host=` is expected to be the first part.
Since Windows renames files adding (1), (2) etc. before the .exe
in case of duplicates, which causes the host or key values to be
garbled.
This allows using a `,` (comma) symbol as a final delimiter.
Fixes#4162