build.sh: fix find parent dir function

Signed-off-by: tsaikd <tsaikd@gmail.com>
dev-java/nexus/2.7.2: update test function
dev-db/etcd/2.0.0-rc.1: add new package