Fixed uri handling in backup tool