After being hit by malware, that removed my <?php tags from my plugins folder. I wrote this to fix it.