Test for existence of $NTA and $BUILDDIR before executing rm command and allow for intermediate directories for $BUILDDIR

...tion of intermediate directories, if any, for BUILDDIR