Fixed compare_dirs in test_output.py