copyDependencyToDir was using strange destination directories