If the keys dir does not exists create it.