ported to dirq 1.4
add --rndhex and --umask options