Take into account subdirectories

Fix #9