Added primitive "exists()", and use it.

  This just tests if the file/directory exists.