fix directory variable assignments