rpm_detect function fix

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