Fixed a minor typo by @penibelst here - must be `file`, not `dir`.