If run as root, link sm to /bin/sm.