Remove unneeded pattern in extglob match on some places.