Remove __MAIN__ and support __DIR__