> The best way would be to have either the folder unique, or the filename unique. So 'path' => 'javascript/jquery-ui-1.9.3/ui/jquery-ui.js' would be also work (better).

But that's impossible with component-installer, isn't it?