Fix static path (now adapts to system), modularize command buttons. Split command name to be output before stdout returns.