Fix pattern matching when serving from other ports. Fix cert-scan args.