make installing directories a util

#38