rewrite Env var to support docker links and tutum/fig links