Added function to retrieve the basename of an experiment from the path to one of the files.