Make `normalizePlatform` synchronous

Now to figure out how to get rid of the error-check redundancy.