you should pass workdir separately from command (as a named argument). This way is very hacky.