rpm_detect fix for openSUSE installer

Function rpm_detect now returns array of installed packages instead of just error code.
It fixes this problem: https://github.com/ros-infrastructure/rosdep/issues/220