Bugfix when giving PATH

When giving a PATH, every folder whose absolute path (as a string) would
start with the given PATH would be listed. Fixed this to only list the
PATH and its subfolders