Added some stuff to make a dir of doesn't exist