Fix "file not found" detection when a remote file is read

Place the . on the previous line, together with the method call receiver.