Search stdin if stdin is a regular file. Fixes #476.