Skip loading files if base directories are identical

This should prevent duplicate loading of files when PATH_DATA,
PATH_DEFAULT_USER, and PATH_DEFAULT_DATA are the same. This is the case
on Windows and Amiga systems.