Replace shell globbing with regex (sorry)

For what it's worth, the glob pattern was too permissive.