Avoid simplexml_load_file warning when config path is a directory