linux script corecount fixed