Fix bugs with 'go/to/path/*' patterns