This lines add chown directive to postinst script, and old variant didn't change permissions for /var/log/app_name, because substitute in replacements target.toString (which is really just file name).