Fixes #5642: used dynamic paths and rpmvercmp in rpm package management