test,windows: implemented process_read_last_line()