fix calling external commands efficiently, printing the output instantly and not forgetting stderr (fix #15)