Adapt example to new naming
Fix finding changed sources for rebuild
Use hGetSome to read stdin buffer <50k

Also, don't send empty messages and output newline to pipe