Update shell.py

Add option to change processes working directory