Simple file versioning (fixes #218)