Minor improvements to windows autodetect.
Merge branch 'master' of github.com:maths/moodle-qtype_stack
Merge branch 'master' of github.com:maths/moodle-qtype_stack