Fix loading of session and input files.