fixed generating wrong path to json.txt in current directory