Fix method dir example in IO::Path

It now uses IO, instead of Str to prevent depreciation warnings.

Fixes #35.