Added Changes suggested by @hakamadare from Pull

Adding a couple of changes suggested by @hakamadare from Pull
request:  https://github.com/huit/puppet-splunk/pull/36
Which I'll Close