Test if directory exists

Test if the directory exist first