Filters: respect shebang if filter is executable.

Closes #1389.