Handle case when directory does not exist