Rename DIR to PATH

This will be a bit more consistent with the existing code farther down
the module.