Fix remote file read. Fix paths resolution logic. Fix file close logic