Split the version string splittin into a separate method

Signed-off-by: Tomas Hozza <thozza@redhat.com>
Rework the version setting methods

Signed-off-by: Tomas Hozza <thozza@redhat.com>
Add more macros into get_paths_with_rpm_macros()

Signed-off-by: Tomas Hozza <thozza@redhat.com>