Replace directories starting with "<name>" instead of "<name>-"

This will support Nexus bundles like "nexus-bundle-template" and "nexuspro-bundle-template"

Signed-off-by: Alin Dreghiciu <adreghiciu@gmail.com>