correctly determines platform