SmartOS: fix system install

SmartOS: Fix system install:

* typoe in OS name in create group function
* update packages for newer SmartOS package names
* workaround bug in bash test for executable file when run as root.