Added function checkPuppetAvailability() for #7.