Add base dir and first template lib