Get rid of black-magic sed script.  can just drop the AppDelegate code right into the plugin file, didn't know that