Move get_rpm_current_version() into misc
Additionally, let it optionally query and return the epoch and don't
require to specify a name (this is only necessary if the name of the
directory isn't the name of the package, e.g. in the case of a temporary
copy).
Signed-off-by: Nils Philippsen <nils@redhat.com>