Template based directory initialiser