adding newline detection

https://github.com/fiddyspence/puppet-sysctl/issues/23

Adding a fix