fixed getOpt, fxnSetTempDir