Fix: file permissions, configuration defaults and scripts for distribution package