modify home path substitution