Update misc.sh

Fixed permission on /dev/null octal permissions should be 666 not 777.