fixing baseUrl calculation in restler