The Steelmen grabbed a vital victory in Dundee that secured their top-flight safety for the 40th conescutive season