fixing an issue where a subdirectory of the origin arg might be the late...

...st 'key' found which causes an exception when reading the json data using the origin key