fixed problem with existing prompt commands that end in newlines