Fixed reset of cursor position to work on both stderr _and_ stdout

This fixes messages displayed in flag colors to be correctly
displayed in the standard terminal output color