Parse config file