build.sh: Allow calling from other directory

is there a reason an absolute path is needed? wouldn't this do?

    DIR=$(dirname "${0}")