Build gulp file more dynamically

There is currently a problem with composer and plugins, which may lead to bower-assets being installed in the wrong place originally. This issue was triggered by that problem but has a more general approach as well.

Let's build the gulpfile.js fully dynamically such that it will reflect the real installation context.