Workaround for getting relative paths on Mono

Uri.MakeRelativeUri(...) seems to have an odd behavior on Mono.
See: http://stackoverflow.com/questions/3692818/uri-makerelativeuri-behavior-on-mono