Fix mac opening files from finder. Fix --export.