CB-5392 - Improve support of platforms which are hosted in a subdirectory in their repository

In order to avoid specific Platform check in each module, append a subdirectory field in platforms.js and use it to return a fixed libdir.

JIRA issue : https://issues.apache.org/jira/browse/CB-5392.