Fix segfault when file '/etc/os-release' could not be open