Fix constant() warning for file-based plugins