Fix bug when searching for config.php file.