Updated parser to read in all but last command when piped