Add -cd option to chdir to run commands