Exporting CURL variables properly