Handle config files correctly