Expand parameter value

Expand parameter value from sysproperty and operating system environment
variable.

Not sure if testng should work on JDK 1.4 and earlier version. So this patch uses StringBuffer instead of StringBuilder.