Patch for detecting site_id when using multisite manger

We needed to use this on a site with MSM installed. The plugin defaults to only 
Awesome little plugin. :)