Fix for ROOT-6751 (etcdir not set)