Remove now unneeded hacks.

* These were probably fixed upstream in better ways.
Fix bad merge.
webkitdirs: test for empty arrays

perl fails if testing $host[0] with @host an empty array (as it is when
the regexp doesnt matches)