server __dirname fix and platform colors