Fix bug 965923 - only trap PIPE if supported