sm: only call sm install if it worked..

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>