Fixed bug in command prefix detection. External command only returns program error when there's no output as Pranz requested