replace --with-path-cfg back to #{etc}/rpm
add --with-path-lib=#{lib}/rpm