Reworked HID path handling (to fix Windows issues)