Fixes to returner __init__.py

Only look for a profile in the cfg dict or function if one has been passed.