alternative fix for ensuring batch mode ROOT