Change .path to .IO, .directory to .dirname, and cwd to CWD to catch up with accumulated IO deprecations