Find rpm name by using the basename of the barclamp path

The issue with using the barclamp id is that some characters might not
be correct (_ instead of -, for instance).
Merge pull request #1845 from vuntz/fix-install-from-rpm-with-dash

Find rpm name by using the basename of the barclamp path