New boy Mendy almost signed by Dundee in January