Add dolast for copyMainDeps