Detecting movies based on folder name

I’m having issues managing my movies library. In most articles I’ve read and in past versions of Kodi and XBMC, my movie library was determined by the folder names of each movie. Now, for some reason the movies are determined by the file name. Unless the movie name is in the beginning of the file name, Kodi will not recognize it.

IE: “Star Wars Episode I/Star Wars Episode I (1999).mkv” is recognized, but “Star Wars Episode I/SW1.mkv” is not recognized.

Is there an option to change this?