fix nc command and some paths

Hi, can I contribute? I really like your code and found some incompatibility with my system. Maybe nc options vary between distributions, I dont know.