add flag to prevent deleting old log files
add flag to prevent deleting old log files

Unrelated, but changed anyway because it was in the same code that was
being changed: use os.rename instead of calling mv. This fixes a
potential shell injection.

rhansen/rpstir,rhansen/rpstir,rhansen/rpstir,rhansen/rpstir,rhansen/rpstir