Now not only ``$HOME`` is substituted correctly but also all other env vars like ``$PWD`` and others.