update setup scripts to use builtin cd command (fix #542)