Fixed bug with the .root file search