Isolate file opening so it does not change gDirectory

Another shot at ATLASSIM-6592

Merge request reports

Loading