Gorenstein and Sr path ideals of cycles