Fix bug when default.xml does not exist but the dir does.