SMW code now only called if SMW is installed

Change-Id: I2726983b79be8ab3f158cb175774a344061344ba