[tor-commits] [tor/master] Extract common code for creating the keys directory.