Lyndon Dykes put Scotland 1-0 ahead against Slovakia in the Nations League after converting a cross from Stephen O'Donnell.