add utility method to determine if we are running on a simulator.