fix determining CPU architecture in case /proc/cpuinfo fails

follow-up for #661