AAI: refactor config file handling:
check fscanf for return value