Fix for file paths generated for cdCommands