Fix bug with multi-line commands