Check if pipe exists before opening Arduino connection