Fixes #95 : login is closing input stream in non interactive mode
Fixes #71 : env has been replaced by remote