Fixes issue with NPE caused by uninitialized preference store
Fixes so that symlinks are detected properly

The TarUtils pack method now detects symbolic links properly. It also
preserves them in the tar file when the java.nio.Files is present.
Closes #477