Update add-to-foreman.sh

Added unattended fallback for failing name resolution situations and added config option for environment.