Add util to guarantee the file path