update directory var name to path