Werris Creek Magpies beat Gunnedah Bulldogs 38-34