Add some condition to prevent error messages.

There's such a case that synclient is executable but no synaptic driver is
loaded. So, I check the list of input devices and grep synaptic device.
If nothing found, no execute synclient commands.