Added function availablePorts() which detects system's available ports in Linux, Windows and MAC OS.
Updated functions resetLeonardo() and LeonardoSketchControl(); instead of calling probeUSB() they call availablePorts() function.
Modified access to the process object in OpenProcess funcion in order to kill avrdude in Windows XP when process times out.
Added return in winKillAvrdude() function if OpenProcess() fails.
Reformatted winKillAvrdude() function code.