Config files

Replace the 'if' expression on line 109 with a 'case' expression or function clauses.