Fixed all references to TEMP to be GETOPT_TEMP