Fix startup crash with nonexistent search directories