change if block to {} style

if block changed to below style.
if (condtion) {
...
} elseif (...) {
...
} else {
...
}

Note that we must pust () around condtion, and put {}
around body even body is emtpy.

Use strict C language style, similar with perl if block.
update scripts/*.kp to use new if block style
change function style to {} block similar with C

function fname(arg...) {

}

do not use below style anymore:

function fnmae(arg...)

end
update scripts/*.kp to use new function block style