chns: make checkbashisms clean
chns: Don't use sudo

Instead of using sudo inside, user must run chns as root.
This also call remove temporary dirs when exit.
chns: Add requirements on comment
chns: Use tmpfs for /dev

Mount tmpfs on /dev when creating pseudo root since
the (native) root can have device files.