Quote shell parameter expansions
Remove excess quotes
The copy method caused failures if there the build uses a script
Correct setting copied files to be executable.