fix tool execution on Windows