Strip trailing newline from Jim_HistoryGetLine()

When linenoise line editing is disabled

Reported-by: Sergei Gavrikov <sergei.gavrikov@gmail.com>
Signed-off-by: Steve Bennett <steveb@workware.net.au>