Update main.php

dirname(dirname(__DIR__)) seems to be one dirname to much;)?