NXDRIVE-40: Create output dir if not exists before creating JSON metadata file in it