fix calling __smf_try_sudo on sm pkg install commands