New Aberdeen boss Mario Frick made a winning Pittodrie debut as they beat Dundee 2-0 in an entertaining game played in awful conditions.