Fixes #5642: used dynamic paths and rpmvercmp in rpm package management
Merge pull request #536 from ncharles/bug_5642/dev/integrate_changes_for_latest_version_of_package

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