Bathurst Bulldogs scrape past gallant Cowra Eagles in Blowes Clothing Cup thriller