add flag to recurse into subdirectories

Was wondering why this did not work. Fixes #58
Okay, this is fine if it's the same as what it's copied from.