move setting up parent to child pipes to pre-exec