fix wildcard issue for mac