buildpackage: remove export_dir if build fails
Previously, the export_dir was not removed if the build command (set by --git-builder) failed, or was interrupted.
This commit ensures it is removed, unless --git-no-purge is used
Not removing is useful for debugging, but does not need to be the default
Closes: #1088179