Added clean before build and copy intermediate built dir by side.