util: Add a method to locate data files, cleanup basedir detection.
This will be needed for finding the YAML file containing non-KDE dependencies.