Improve code to extract runfolder name from the path to the runfolder.