resolvePath to fix data.json path problem