Enabling it to check home directory for custom hosts file on mac and linux

Added support so that it checks the user’s home directory for the custom hosts file.