scanner: Support running under MSYS

https://bugzilla.gnome.org/show_bug.cgi?id=724880