Fixes for navigation linke creation
Fix to command link generation
Better diagnostic message when rename fails
New id_to_filename for DirData to handle the case when creating a new directory