do not allow handbrakecli to drain STDIN

HandBrakeCLI apparently eats all of STDIN, which makes it impossible to
use easily as part of a larger shell script (for example, using find(1)
to discover files to rip).

Also refactor the call to HandBrakeCLI so it looks better and is easier
to manage.