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).