Updated index.php to use custom config when needed