Some tuning to the export script to create paths and be easy to call from command line.