Create history/output folders if they don't exist