ensure working dir is correct