Dundee to remain at Dens for two years amid Transport Scotland talks