Added the ability to change CWD automatically,