Fix deprecations - Remove calls to .path in favor of .IO

.path is deprecated