add flag to recurse into subdirectories

Was wondering why this did not work. Fixes #58
This doesn't need exporting, does it?