Bugfix: dependency-locations works

Previously, it was silently failing to print in some situations.