Detect plugin without a QApplication instance