shell script for making movies out of plots from R