Make api url setting code more robust (to forgotten forward slashes)