build.sh: do not use readlink for unexisting dir