Fix CPU detecting script