bugfix in recursive get-files function