Changes just the first ocurrence of an expression in a path