IO::Spec.directory -> dirname, for clarity