Parse configuration file