Cleanup SmartOS package dependency handling. Fixes #2755