External library loading bugfix  (#1832)

# Description

Fixed a bug that caused loading of external libraries to fail due to
wrong directory name

## Changelog

- [ ] Patch
- [x] Minor
- [ ] Skip

## cdf

### Fixed

- Fixed a bug that caused loading of external libraries to fail due to
wrong directory name

## templates

No changes.
