Put a check in to be sure SM_PATH wasn't already defined. Seemed safer than just...