Fix config file handling for audiod and clean up init functions.