Passes tests, issues with multiple directories resolved
removed var_dump