fixed borked __dirname