Uses "os" to determine whether path is a directory

Instead of importing the missing `"milo/utils"` package to use
`IsDir()`, just use functions from the already-imported `os` package.

Fixes #1