Set serial number from file modtime if not explicitly set in json

Closes #36