Bug fix for config file location detection in controller.py