Fix 'index out of range' error when no conf files