add buildininstalldir easyconfig parameter with unit test + style fixes

this builds on top of @JensTimmerman's PR #778