replace variable sequence to path