Logfile rotation and cleanup for Magento 1.6.0.0 and up