config_cpu(): get rid of cpufreq-detect.sh and simplify code