postgresql: fix systemd support
bash: make mklnx work with any source tree