cleaned up many minor errors and style issues in puppet installer
Replaced `backticks` with $(parentheses) for command substitution