TC-648 truncate tailing slash from cloud url if necessary