Fixing the pathmatch algorithm for globmux