Fix breaking bug on url joining resulting in paths like `///path`.

Added OS-agnostic url join helper.