Support tasks that only have source files

Lint tasks like coffeelint or jslint don't have output but
just a bunch of source (input) files. Now restrict detects that
and works in this case too.