checking if directory exists