Add functionality to create a directory if not exists