make installing directories a util

#38
Merge pull request #79 from metridoc/make-downloaddeps-util

make installing directories a util