default to inplace if no output directory is supplied
seaching subdirectories