Get rid of leading zeros in date tags, causing them to be interpreted as octal in C++
Re-fix: don't add path to empty files. Fixes #536