fixed concatenate for directories