Runtime check to default correct dir on unix