Renamed several functions for consistency.

  isMaildir   -> is_maildir.
  isDirectory -> is_directory.