Check the validity of serviceproviders.xml at build time