refactor nginx init.pp to be puppet 3 compatible