Minor fixes on nanocube-distribute and simpler tcp handling in nc...