fixed puppetmaster setup, added automatic git repo checkout