Clarified logic to look for URLs without the https:// prefix first