Added directory-making code for dl