process_utils: fixes while testing on Windows