Fix source code loading in remote sessions