add utility method to determine if we are running on a simulator.
Merge pull request #69 from faisalmemon/master

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