Shell: fix "test" command

Make "test" command create "output/syslog" file when
the file isn't exist, using "mkdir -p" and "touch".