Isn't it a bit "dangerous" to do it like that ? depending on the versionning scheme it could replace unwanted data.

Would it be possible to have some kind of regexp that could be configured though the config file ?