Add function get_rpm_info_idx and fix env vars names