BugFix: There is a race condition with nagios.

If NagExt call open() and the pipe doesn't exist it will create a file instead of a fifo this will fail nagios.
In the following patch NagExt will fail if the pipe doesn't exist of if the command_file is not a pipe.