Do the right thing in save_rrds.sh

Ticket:	#6208
(cherry picked from commit a5d6591b14afc3f7ec8521453021a8c16bfc7c12)