added interactive mode
refactored menu_scandir, made it easier for code analysis to see that menu_data.dir_entries was not dereferencing NULL