Parse the config file as .ini unless it is explicitly .hdf

This has the side effect of fixing a silent failure caused by d37399d
when loading a Sandbox HDF file without an extension.