Search for files recursively when input is a directory

Fixes #78.