Fix localServePath for servePath’s without protocol.

@finik replaces and extends #275.

I think the test in 7e758db covers the case you were explaining — take a look and double check, if you will.