Remove unnecessary if statements in init_cfg

os.getenv can return a default value instead of None.