If you move the check of the environment variable here, I would directly remove the filename parameter for parse_config().