In version 2 there was an import preference to name files with/without extension, in version 3 there’s now a display preference that can be changed anytime. The old files were probably imported with the extension and AppleScript always delivers the name independent of the preferences.