Fix is_local check for protocol-agnistic URLs