Handle missing directories