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
Merge pull request #281 from lufterc/patch-1

rpm_detect fix for openSUSE installer