fixed a bug in the glob expansion code (pointed out by