Fix __dirname paths in Windows