Parse configuration from file