Bugfix: trailing slash in workdir argument