Use platform compatible path separators when creating the parser

This fixes breakage on Windows.