Rename 'dir' to 'directory'