Fixed minor if statement bug
Fixes having to do with puppet agent and running automatically