Appends the version of the component into the build path

@yields Could you please review my change? I don't expect you to merge this into the main branch, but some feedback would be great!
Is there a better way to go through all paths that might contain bundles?