added code, tests, and test resources for subdirectory handling in the plans dir