Generate environment variables from links.

Fixes #91.
Why `sleep 1`?