Return 404 when a folder doesn't exist.

Currently it tries to serve something up as a folder if the path ends with `/`.

Replace this logic with `os.path.isdir()` to see whether there's an existing folder or not.