Fix process check on windows