Semi-working version of recursive_directory_iterator