windows: hoist expand_glob() back into util.py
The windows version of expand_glob() requires patkind(). To
avoid a circular dependency, move function back into util.py.
adding a
abort: username 'foo\nbar1' contains a newline
abort: username 'foo\nbar2' contains a newline
transaction abort!
rollback completed
abort: username 'foo\nbar3' contains a newline!