etc/dists/scripts/*sh: error message fixes

Unify error messages to
1. Say "Can't write to file" or "Can't copy file"
2. Say file name

Also, put file name into a local variable in a few places
for the better code readability.

Signed-off-by: Kir Kolyshkin <kir@openvz.org>
5 files changed