Added an extra argument to specify base rpm directory in addition to the rpm name