Fix to support path substitution with 0 value.