ensure link dir exists