Remote terminal failing on mender 3.0 server

@wisse-cp yes, PR is in progress to improve it.