dir() reverts to IO::Path by default