Change RemoteFile.get[Input|Output]Stream behavior with directories