Fix SMS to chdir