changed code that check process existence on windows platform