create .tar.gz archive out of pack directory

The first commit adds the creation of a .tar.gz archive containing everything from the pack-directory except the Makefile and VERSION files.

The other commit replaces the execution of "chmod" with Java code to set the executable permissions.

Does this make sense to you?