checking to see if directory exists