improved static file wildcard matching