fix copy of dependent modules to output folder