[KARAF-2632] Handle backslashes at end of line in the console