Fix %s substitution in pipes; fix #229