Actually replace $root from config replaces

Fixes Issue #2