in reply to what is illegal division by zero

My suspicion is that the slashes in your filename are being misinterpreted as divisions(or possibly in your date). Make sure you're quoting correctly.