few minor fixes for setting root tor dir