chns: Small enhancements and add -h option

Add -h and --help option to show the usage.
And this includes 3 changes
 - set -e by default
 - remove --post option and check whether in a new namespace by
   checking PID.
 - pass TMPDIR by environment variable