Corrects some pathing problems when exporting. Also creates the export folder if it doesn't exist yet