clean artifact directory on rebuild
(cherry picked from commit 818d969)