Fixed directory check
Merge branch 'handle_two_reduce_files'