Remove directory if build fails.