Ensure that the directory exists