Endless loop in UrlPrependPath on Mono/Mac

Mono (on Mac) parses "/my-path/" as a valid absolute url (file:///my-path/), causing UrlPrependPath to recursively call itself in an endless loop.