pnd_run.sh: move pre/post-run scripts where env is set up Note: pre was run before env was set up and post still with env set, now both are ran with env (PATH and LD_LIBRARY_PATH) set, so things may break. This is unlikely though as almost nobody is using pre/post scripts.
pnd_make.sh: use root uid/gid for squashfs, not user's there is no point using uid/gid of current user that's creating the .pnd (which can be almost any uid/gid as it's on the host system), the SD card/appdata is owned by root by default, so archived files should be too. It's also the reason why it wasn't possible to update existing files (appdata and pnd uid/git did not match), but also right permissions must be set.