distro: use local variables instead of positional variables.
distro: change variable scope.
distro: remove "local".
distro: enable to define file mode/owner/group.
Merge branch 'feature-copy-file-owner-group'