minor fixes to puppet module script