95-year-old painter threatened with eviction from Cape Cod dune shack wins five-year reprieve