Have known_hosts function use the url parameter instead of getting a specific attribute out of the module dict.

This makes the function useful in more places