Fix file uris to only work on folders