[#1872] fix directory issues with build clean