Handle case where URIs are provided during config for hostname

Might fix #2 *shrug*
Makefile changes