Fix usages of erase-buffer in shell commands