fix chdir inside chdir warning will make exit code not 0
Merge pull request #4 from arkxu/json

don't need to chdir