make sure that workdir(character) has trailing filesep

* like workdir(repository)
tests for workdir(character)