make sure lib/log dirs exist