updated the exporter so that if the top level directory doesnt exist it now makes it.