fix bug reported on sourceforge at https://sourceforge.net/p/rsnapshot/patches/14/