Add #{$directory} to paths used in mutations context menu

[#65125904]