Fixed isses with remote stdio