Determine platform/environment.