pushed locale stuff down to platform/, added platform directory existence check