Fix file url when path is empty