Fix compatibility with radio button plugins

Script assumed if it found something ":checked" that it was a checkbox which caused issues if using plugins that turn category checkboxes into radio buttons.
Merge pull request #1 from theoephraim/patch-1

Fix compatibility with radio button plugins