packaging: support setting attributes on generated files

ensure generated scripts are executable.

Change-Id: Iacd9614777540f6ed6da741de5157b888beb7629
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>