tools/cmake: fix download url with make variables