add get-platfor for common platform variable
Compatiable to Mac OS X