Build hpi path from artifact metadata instead of preserving the structure from -hpiDirectory

This is more robust solution as it can deal with malformed hierarchy in -hpiDirectory. Last but not least it can generate download structure from flat directory of plugin files.