gracefully handle missing directories in generator