Creates directory if necessery