worker interactive mode: check stdin type

In particular, redirection from a file was leading to abort(),
so we provide an error message instead.
30 jobs for memleak-uv-strdup
in 6 minutes and 36 seconds and was queued for 2 seconds