Fixed unbound variable create-directory*
Added configuration directory switch