build.sh: fix install of poseidon with symlinks