Simplified the troublesome plugin detection in the Import handler.