Fix #65 mtools - Bug on socket availability check