search commands tests: fix opening files on Windows