Fix SMF support and manifests to properly substitute users, groups
and directories (if any).