Fix file path building bug.