Fixed version generation (number of builds)

Signed-off-by: Shahbaz Youssefi <ShabbyX@gmail.com>