Add fixes for commotion.sh to only use json_get_var when appropriate.