get the class name from the relative path name instead of regex.