CpuFreq : Optimize code and improve error handling when some file are missing