Fix install linking and test -x expressions