fix for https://github.com/Adobe-Consulting-Services/acs-aem-tools/issues/85

only considers client libs of the requested type
minor cleanup
additional tests