Move config to hydracommon and handle missing config properly