How do I find out if a patch has been applied, and if so, the version of the patch?