Fixed handling of relative JSON path

If json file is in current directory, we want "#{dir}", not "/#{dir}"
which would be in the filesystem/domain root.