Do not mix tabs and space indentation

Signed-off-by: Michal Čihař <mcihar@suse.cz>
Factor out version suffix generating

Signed-off-by: Michal Čihař <mcihar@suse.cz>