Improve markdown formatting of smart directory handling examples