scanner: fix loading config.yml
With my last merge request I accidentally intoduced a bug where scanner.py stopped loading 'config.yml' because the helper functions from common.py get called in the wrong places. This change fixes this issue.
With my last merge request I accidentally intoduced a bug where scanner.py stopped loading 'config.yml' because the helper functions from common.py get called in the wrong places. This change fixes this issue.