fix setting prefix before calling should_do_win_subprocess()