fixed a bug when splitting for the file extension of a file in a directory with a ..  Taking basename of cluster file to ignore the path.