Ensure that exception is thrown if configuration file has unexpected extension (not .xml or .groovy)