sniffer: improved start script creation
sniffer: fixed Windows bugs