Only adding a prefix to smf path on SmartOS

since `/lib` is a read-only filesystem.