adds ext detection to spawn for windows