fix by-installed display for directory sources

Closes PR 14873