fix usage message
fix some stderr vs stdout mixing
use TMP environment variable, if it's set
sync
sync