Fix isRunningOnDevice

Signed-off-by: Ashley Mills <ashleymills@mac.com>