Updated $BASEDIR in build script