Fix cross-platform wildcard issue