Fix bug in detecting and comparing local dev URL.