Cleanup main script by simplifying configuration file handling

Change-Id: Ife872a344cd652936a1198dc0f4377f34970903b
1 file changed