Core: Added ability to set output directories for root and batch files via command line