Extend the hack towards backslashes as path separators

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