Detect if crawler called through require or directly