Shouldn't we also accept `origin` overload for packaged apps?
`metadata.orign = origin || (manifest['package_path'] ? getOrigin(manifest['package_path']) :  getOrigin(json['launch_path']))`