Better check for std{in,out,err} attach options