[RFC] Fix setting up prebuilt dependencies.

Test build is at https://travis-ci.org/fwalch/bot-ci/builds/42436559, still running, but looks like it works.
It uses the string content of the variable as a variable name, e.g. if `A=MyVar`, `${!A}` will output `${MyVar}`.