Fix <directory> to <dir>