Version handling : fill in missing trailing zeros

This patch fix https://github.com/LuaDist/Repository/issues/116

A unit test function has been added in test_depends.lua
A more strict and less error-prone syntax for version could be adopted, unless a very flexible syntax is prefered to better fit with the various upstream version and tags syntax.

Feel free to comment or request for version handling improvement.