remove bug where recursion did not process the current directory