Hibernian ended their long wait for a Premiership home win after overcoming Dundee 2-1 at Easter Road.