bugfix, cd into workdir