Fix filter_directories for the main planet