fix engine detection by only using comparing base name