making puppet apply work and fixing issues with install_puppet on linux