Fixup https detection.