Fixed syntax error in main_dir