fixed reference to $home_url (was $homeurl)

otherwise, home_url will always be set to site_url making it impossible to use this script on sites were both urls are different.