config: do not ignore return value from getcwd()