Simplify CommonJS detection.