Factor out logic to gather list of installed paths

Use in both getInstalledStandardPath() and getInstalledStandards()