Remove intermediates files in build