Added function to check if device is jailbroken.