Write to LIRC socket instead of doing system()