puppetmaster machine now also uses the correct dns server
made puppet apply script more portable