Hi Reiner, Thank you very much for digging into this and providing a patch, altough there's a little problem.
The last part, used to get the date, returns an error "date: invalid option -- '0'". If you'd like to make another patch or just point out how to fix it, i would be glad to include it on the next revision (i'm currently doing a new one and i'm willing to wait until this reproducibility problem is fixed to upload). Thanks. Samuel Henrique O. P. [samueloph]