Extract URI from File before using it to search for config files

Fzies gh-8