remove workdir character method

* discover_repository essentially replaces this
  although one may need to do:

  workdir(repository(discover_repository(path)))
* also remove tests