fix strange json_encode issues, change cur dir to script directory
Merge branch 'master' of github.com:parf/spartan-test