adds ext detection to spawn for windows
fixes the ext detection issue in getPossibleExecPaths