Why not check /dev/fd0 before mknod?Because session.cmd may raise non-ShellCmdError,
then we don't know what's wrong with it.