Moodle.2x mod/reader replace __DIR__ with dirname(__FILE__) for compatability with PHP 5.2