Export fonction fixes.

Was outputting incorrect format when deployed to CloudBees.