Add working directory support to "runCommand"