Update cApplication class

use system detect script