Instead of using /tmp/cygnus, I would suggest to use mktemp to get a fresh random temporal file:

```
TMP_dIR=$(mktemp -d /tmp/cygnus.XXXXX)
```

As final step of the script, remove the file (it use to be usefl to include a --keep option in the script command line to avoid deletion for debugging).