Shell was finally improved

fixed bug with "cp dir non-existing-dir/non-existing-dir/dir/dir"
operations with filestreams became more reliable