Fixed bug processing the command line: no longer truncates cmd