Simplified OpenDSA root directory auto-detection code