Centralize platform detection