Added support for relative paths in json files for command line tools.