Various fixes in init
Various fixes in init

* Add config option to limit number of pipes
* Return empty array for cmds rather than empty string
* Ensure command has a first argument before sanitizing its path
* Separate output lines with |
* Cap output length to 512 bytes

scott-linder/irsh,scott-linder/irsh,scott-linder/irsh