Fix bug in placement of second config file check