Added code for asking if dir should be created