Liam Craig grabbed the only goal of the game to hand St Johnstone a 1-0 victory as Dundee's SPL survival hopes were dealt a further blow.