Small improvements to json_lint.sh

Note: I'm wondering why is it necessarily to keep track of the directory
from which the script was launched. The working directory of the parent
process isn't modified by its children.