fixed a bug where an empty path part would cause make_url/3 to fail

starting e.g. couchbeam pointing at "localhost:5984" would fail because part of the path is the empty string.  this patch fixes that "bug".