Added ability to specify default working directory for running just shell commands