add flag to recurse into subdirectories

Was wondering why this did not work. Fixes #58
So the expanding (directory walking) should be done in the main?